Revert "[#2356] disconnect the connection"

This reverts commit 97e72df2f72d84ae23bf951e9ec715dc00fc094d.
[#2356] disconnect all connections before exiting. always call cleanupAndExit ( status ) instead of exit