Fix ActiveRecord connect/disconect

https://github.com/rails/spring/issues/256