Fix leaked file handle

The file handle opened in Preamble.load has not been closed previously. This lead to problems later when trying to delete the loaded file.