added stream wrapper to abstract windows issues
implemented closable stream interface
added stdout and stderr callbacks