Fix shell hangs on checkconfig command when using http steps
Add sharedSession to prevent blocking session
Fix restart hang, close session at the end of the reactors