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.