Fix pmonitor() to not return blank lines on EOF
fixes #109 (hopefully)