monitor: convert do_closefd() to QError