Do not raise exceptions when stdio is closed 
Do not raise exceptions when stdio is closed 

Question was calling methods on nil and `Errno::EIO` was raised.

This way you can properly handle `Interrupt` exception.
aluck19/capistrano,cickes/capistrano,yasarkunduz/capistrano,prla/capistrano,yasarkunduz/capistrano,harrykiselev/capistrano,Drooids/capistrano,harrykiselev/capistrano,holstvoogd/capistrano,awangga/capistrano,jdelStrother/capistrano,rbramwell/capistrano,savonarola/capistrano,ducthanh/capistrano,udayakiran/capistrano,CartoDB/capistrano,ngpestelos/capistrano,udayakiran/capistrano,capistrano/capistrano,rayko/capistrano,codedogfish/capistrano,kirs/capistrano,joebew42/capistrano,CartoDB/capistrano,timoschilling/capistrano,mokhan/capistrano,ducthanh/capistrano,pascalbetz/capistrano,quixoten/capistrano,aluck19/capistrano,ghanshyamanand/capistrano,timoschilling/capistrano,vsco/capistrano,jdelStrother/capistrano,xiaoliw7/capistrano,ngpestelos/capistrano,kirs/capistrano,mpangrazzi/capistrano,kylerippey/capistrano,maliqq/capistrano,vsco/capistrano,signe/capistrano,PagerDuty/capistrano,mpangrazzi/capistrano,xiaoliw7/capistrano,capistrano/capistrano,Drooids/capistrano,awangga/capistrano,rbramwell/capistrano,ghanshyamanand/capistrano,spight/capistrano,iancampelo/capistrano,kentatogashi/capistrano,rayko/capistrano,rubyconsumer/capistrano,townsen/capistrano,CanalTP/capistrano,signe/capistrano,spight/capistrano,townsen/capistrano,maliqq/capistrano,prla/capistrano,sideci-sample/sideci-sample-capistrano,mokhan/capistrano,cickes/capistrano,savonarola/capistrano,CanalTP/capistrano,holstvoogd/capistrano,kylerippey/capistrano,kentatogashi/capistrano,codedogfish/capistrano,iancampelo/capistrano,quixoten/capistrano,rubyconsumer/capistrano,joebew42/capistrano,sota1235/capistrano,sota1235/capistrano,PagerDuty/capistrano