1. Remove the unused code.
2. Fix the default constructor error.
3. Fix the potentially memory leak of the handler.