Moved all errors to a dedicated error-handler.