close activerecord connections