title: rails runner jobs not releasing file log handles
body: <p>I am running a rails runner job that sends out some emails based on database contents. The job runs every four hours via cron.</p>
  
  <p>I realized this is causing a problem on our app server b/c the runner job holds onto some file log handles (production.log, etc) and the nightly logrotate job then fails. This causes disk space to fill up, etc.</p>
  
  <p>The runner jobs invoke the Rails production environment, does a couple of ActiveRecord queries, sends an email via ActionMailer, and then exits. I'm not explicitly doing anything with the logs.</p>
  
  <p>Is there something I can do inside the runner script to release log handles, or disable logging altogether (would rather not do the latter)? And should I be killing off the production Rails runner process formally? The script just ends ... but sometimes we see items like this in our processlist after the job has run:</p>
  
  <p>4 S 1000     12008 12002  0  80   0 - 127507 futex_ Sep29 ?       00:00:32 ruby /path/to/my/app/rails runner -e production require 'delayed/command';Delayed::Worker.before_fork;Delayed::Command.new([]).run</p>