Cleanup after upload.