Fixed: quit when paused and device.closed not callable