monitor wasn't closed properly by monitor.close()
Merge pull request #4 from nitoyon/fix-close

Fix: monitor not properly closed by monitor.close()