Added check if connection is (still) open