Registration better error handling when connection fails