Cleaning up IOManager._handle_io_manager_directive().