node crash when timer object improperly defined
In this case the timer had been defined without specifying a name, should protect against this somehow:
2020-09-14_21:02:04.429224Z IMC_LOCK executing state: INIT (0)
2020-09-14_21:02:04.430158Z Process Worker-1:
2020-09-14_21:02:04.431279Z Traceback (most recent call last):
2020-09-14_21:02:04.431279Z File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
2020-09-14_21:02:04.431279Z self.run()
2020-09-14_21:02:04.431648Z File "/usr/lib/python3/dist-packages/guardian/worker.py", line 302, in run
2020-09-14_21:02:04.431648Z state.destroy()
2020-09-14_21:02:04.431648Z File "/usr/lib/python3/dist-packages/guardian/state.py", line 139, in destroy
2020-09-14_21:02:04.431648Z self.timer.destroy()
2020-09-14_21:02:04.431648Z AttributeError: 'int' object has no attribute 'destroy'
2020-09-14_21:02:04.444455Z IMC_LOCK stopping daemon...
2020-09-14_21:02:04.447260Z IMC_LOCK daemon stopped.
2020-09-14_21:02:04.447451Z Traceback (most recent call last):
2020-09-14_21:02:04.447451Z File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
2020-09-14_21:02:04.448347Z "__main__", mod_spec)
2020-09-14_21:02:04.448347Z File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
2020-09-14_21:02:04.448347Z exec(code, run_globals)
2020-09-14_21:02:04.448347Z File "/usr/lib/python3/dist-packages/guardian/__main__.py", line 289, in <module>
2020-09-14_21:02:04.448347Z main()
2020-09-14_21:02:04.448347Z File "/usr/lib/python3/dist-packages/guardian/__main__.py", line 280, in main
2020-09-14_21:02:04.448989Z guard.run()
2020-09-14_21:02:04.448989Z File "/usr/lib/python3/dist-packages/guardian/daemon.py", line 452, in run
2020-09-14_21:02:04.449237Z raise GuardDaemonError("worker exited unexpectedly, exit code: %d" % self.worker.exitcode)
2020-09-14_21:02:04.449237Z guardian.daemon.GuardDaemonError: worker exited unexpectedly, exit code: 1
2020-09-14_21:02:04.510384Z guardian@IMC_LOCK.service: Main process exited, code=exited, status=1/FAILURE
2020-09-14_21:02:04.510904Z guardian@IMC_LOCK.service: Failed with result 'exit-code'.