[Bugfix] ensure onerror’s are correctly unsubscribed in all scenarios
Merge pull request #255 from tildeio/fix-onerror

[Bugfix] ensure onerror’s are correctly unsubscribed in all scenarios