it might get useful to delay error msg until you know how it gets killed and add that information (TERM or KILL signal) to the debug msg