Altered proxy shutdown and clear and added a handler for unhandled exceptions at the app domain level to ensure win inet is reset