Ensures zip file is closed when transferred to user.