Add cleanup routine for imported files