add fatal_error function to cleanly exit the program with an error code and a custom error message printed by g_cart_id==0 only