"exit $?" raises TypeError on Ruby 2.0