Adding code to close files  in the proc_kill()