Exitf is a better name for that function