This method will flush any queued changes and close the package.
Returns true if the package is closed successfully, otherwise false is returned.
If the package file cannot be written to, false will be returned.
Files cannot be read from and written to after this method is called successfully.
Packages are automatically closed upon deletion.