fixed unhandled exception during pipe streaming cuases termination of delegate