socket shutdown
dirty hack for fixing collision in unittest