bugfix stopping monitor at shutdown