Packet mode returns non-zero exit code on error