adds sleep to the restart so things stop completely