Make sure that socket is always shutdown on disconnect
Authored by: artyom-beilis 2012-02-07
Parent: [r2106]
Child: [r2108]