Add FreeHGlobal call + crash the app if the user doesn't enter API key