Added close() call on close stat for ConnectionStateHandler
test fixes