Added errorhandling in StreamEvent