handle error the way GM does