add memory leak failsafe to profilerouter finalizer. add docs.