close() the streams before reportProblems()
Make sure to drain the pipes.
Updated.
checkLine() breaks the string in to lines and passes it to processLine().
Fix for watchpoints.