monitor: Convert do_closefd() to QObject