bugfix: monitor exit