Add socket cleanup. Don't know what to do with remaining sockops if called from a SetRegister reset command.