added commands to speed up shutdown process