Fixed #21057: FileSystemStorage can leave temporary files around.

This patch makes sure that the uploaded file is always closed, ensuring that temporary files get cleaned up.