return immediately after error