connection resource leak fixed