Handle gracefully authentication and send outbound errors