Support for catching typescript compilation errors
Prevent "Unhandled stream error in pipe" when compilation error occurs.
Merge pull request #5 from jespermjonsson/master

Support for catching typescript compilation errors, fix #4