better default controller error handling