Fixes what I think is a bug in the MetricsListener.

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.