fix: open connection count (#527) This commit releases back the connection in the special case, so that correct count is always maintained.