cppsp: fixed a bug that prevents the disablement of the timer when there are modules loaded