Add cancel exception to devices.
Make stop_devices call the cancel_exception method.