Recorder: fix for exception in export proxy not shutdown

PR for Recorder: proxy is not shutdown on export exception #1864