Bugfix, detect 'timeout'

- do not assume stop of program when stream is closed, but when status running
  turns false
Merge commit 'e7e28a950469172f5aa37f9e639c3b35913966b4'