fix typo in close_proc