added testcase
bugfix close should ignore connection resets