capistrano/capistrano — pull request #216 by nutrun (2012-05-30 16:55:42+00:00)
Title: cap shell dies when Thread.abort_on_exception=true

Try this deploy.rb to reproduce: https://gist.github.com/2837590

Patch fixes it by moving the sessions method where processable expects it