Error handler and application.