name backdoor to bd, and add close callback for connection