Ensure that when the nxlog.log file rotates we don't miss or duplicate any messages.  Closes #39