changed to !shutdown, added a couple of delays, changed return to throw.