Set bufferedProcess to null on process exit or run error

This prevents calling kill block while closing the view when
no processes are running. This was the case as
BufferedProcess.process is not automatically nullified.
Clear process on kill, don't use BufferedProcess.process
Merge pull request #243 from tg/nullify-process

Nullify bufferedProcess when done