Added new function for usage stats

This will log usage stats without closing the script. It's boringly
called "log_usage_stats_without_closing". You can pop this into scripts
that call other scripts to send a usage log without closing. @CDPotter
and @RobertKalb may find this useful for closed/denied/approved progs.