Cleanup of proxy