[No-Merge] Adding connection close listener to close and reopen connection after ea...

...ch test

As directed by @DeepDiver1975 This should resolve https://github.com/owncloud/core/issues/10991#issuecomment-58187750 and another
the idea was to close the connection in here