Running the console with the following fixed these sorts of problems for me:
jruby -Xlaunch.inproc=true -S rails c
If you don't like running that command every time, you can set an environment variable:
set JRUBY_OPTS=-Xlaunch.inproc=true
or
export JRUBY_OPTS=-Xlaunch.inproc=true
then
rails c