ConsoleApp: error handling