added AR.connection.close to controller