invalid command callback and socket destroy() call