close activerecord conenction