fixed connection released callback. Fixed protocol docs