Catch and exception while writing stream
Merge pull request #41 from Aplopio/add-timeout-subprocess

Catch and exception while writing stream