Properly shutdown socket when VM started during created