Fixed bug while send result to main process if socket already closed

Sometimes I get this error on windows: ``Use of uninitialized value in addition (+) at C:/strawberry/perl/site/lib/Mojo/IOLoop/ForkCall.pm line 110.``

This patch handles error from syswrite, but I can't write corresponding tests for this