Move isClosed() into the monitor itself