stop execution after error and don't call back twice