make sure methods return after error