Exit if API key is invalid