* Propagate output write errors (exceptions) to library's user
* Bugfix: Fix handling of exceptions in destructors of library's classes