better handle errors from the underlying classes in the UI

prefer to return error codes rather than serve wrong data
cleaner error handling in the store and event interface

exit on error