Added exit code, debugged request resend message