cleaning up monitor loop. no need for Printf, no need to always kill the loop