made it so that crm connections are closed after use