Implemented dispose method in http module.