Added return status checks when handling connection's authentication challenge