capistrano/capistrano — pull request #1172 by mikz (2014-10-31 11:00:56+00:00)
Title: 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.

Ideas how to test this?