remove p_open/close only from instr if avail. Fixes #24