fixed proc_cleanup