bug that closes connections