Cleanup gateway decorator.