Added a cleanup method to the watchtree