destroying protocol onclose
0.7.2