Handles exit correctly now, thanks to code example from Sidekiq
Switch to jruby-head for build