NCBC-590: Refactor logging so that ODE are not raised when it references a disposed object

Change-Id: I5d81dba00d64e4caf34d165491624e2c02a9949b
Reviewed-on: http://review.couchbase.org/41390
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>