Clean up devices.