Exit gracefully if variable is not available