How do I track down the reason for the spontaneous restart of the application?