TIMOB-15612-make sure that data is not send after abort

Make sure that we don't write to the stream after abort.
https://jira.appcelerator.org/browse/TIMOB-15612