maybe check if monitor is cancelled here