Fix problems with rendering error handling.
Fix problems with error handling and events.
Improve release script.