bug: closing not available connection fixed