better app logging for crashes/restarts