fixed the management conn close()