Fixed handling of REJECT return code.