don't kill the process if data haven't been written to the socket
Merge pull request #18 from robinmonjo/fix-short-process-bug-61123920

[fixes #61123920] don't kill the process if data haven't been written to the socket