Added a sleep to the shutdown so jobs can finish.