Fix Error message when quitting the monitor