error handling in monitor. fixes #6
v0.5.4