Added destroy support for client middleware