Lock a device and wipe its data on emergency