Improved disposing proc for the adapter