monitor wasn't closed properly by monitor.close()