(Issue430) Adding some temporary logging to see what is going on during shutdown