bug fix when closing blockmon