fix: Logmanager timer destruction caused a crash

Merged Nicolas Delpech requested to merge fix/logmanager_crash-on-sigint into master

Timer improvement to store the SuRoot shared_ptr if passed

Also add a test for the main function.

Cherry picked from commits :

Edited by Nicolas Delpech

Merge request reports