Made enable/disable_instrumentation idempotent.
Be resilient if not all middleware run.

Fix #129.