Issue #3191 has been updated by Karl Baum.


I was able to trap this exception before the shutdown:

y06-s00055.14884  #<SystemExit: #<SystemExit:0x10aa6120>>
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/imap.rb:934:in `initialize'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/connection.rb:417:in `new'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/connection.rb:417:in `connect_to_master'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/connection.rb:414:in `each'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/connection.rb:414:in `connect_to_master'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/connection.rb:580:in `checkout'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/connection.rb:341:in `send_message'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/collection.rb:312:in `update'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongo-0.19.1/lib/../lib/mongo/collection.rb:208:in `save'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:38:in `send'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:38
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:22:in `call'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:22:in `attempt'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:39:in `save'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:38:in `send'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:38
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:22:in `call'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:22:in `attempt'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/collections/mimic.rb:39:in `save'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/commands/save.rb:17:in `execute'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/commands/create.rb:15:in `execute'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mongoid-1.2.14/lib/mongoid/commands.rb:138:in `create!'
y06-s00055.14884  /data/weshop/releases/20100430210714/app/models/email/mongo_message.rb:62:in `create_from_message!'
y06-s00055.14884  /data/weshop/releases/20100430210714/app/models/email/message.rb:405:in `create_mongo_message!'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in `send'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in `evaluate_method'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:166:in `call'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:93:in `run'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:92:in `each'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:92:in `send'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:92:in `run'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:276:in `run_callbacks'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:344:in `callback'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:267:in `create'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2874:in `create_or_update_without_callbacks'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:250:in `create_or_update'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2555:in `save_without_validation!'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/validations.rb:1088:in `save_without_dirty!'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/dirty.rb:87:in `save_without_transactions!'
y06-s00055.14884  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb:200:in `save!'

----------------------------------------
http://redmine.ruby-lang.org/issues/show/3191

----------------------------------------
http://redmine.ruby-lang.org