Fix monitor never closing when asked