PROTON-740: fixed shutdown and event related issues with idle timeout during sasl