improved progress_manager.py. this solves the "ERROR removing monitor" bug