Debug controller. Implement deconstructor