free memory in cleanup routine