Prevent app sockets from being deleted by attacker