Better error handling; gracefully shutdown and show a clear error message.