better support por connection closing