I didn’t know until just now that you don’t need to include the closing ?> in PHP files that consist entirely of code. The Drupal coding standards explain why you probably want to leave it out:
Note that the final ?> should be omitted from all code files–modules, includes, etc. The closing delimiter is [...]