ToDevice deadlock

https://github.com/kohler/click/issues/105