MetricsListener : Fix exception on shutdown.

When we close the HttpListener that backs the MetricsListener, the
blocking call to GetContext is interrupted and throws an exception.
Adding a catch block to block it and not let it propagate through.