App layer should not throw protocol exceptions
Implemented lost connection event