added socket clean up call in onDestroy