added template for close bb connectionb