fix: when the last running task finishes, empty the monitor window