Updated application error handling.