Logging: Fix random crashing
Logging: Fix random crashing

mirkix/apm_planner,kellyschrock/apm_planner,diydrones/apm_planner,kellyschrock/apm_planner,diydrones/apm_planner,mirkix/apm_planner,dcarpy/apm_planner,diydrones/apm_planner,mirkix/apm_planner,dcarpy/apm_planner,mirkix/apm_planner,dcarpy/apm_planner,diydrones/apm_planner,dcarpy/apm_planner,dcarpy/apm_planner,diydrones/apm_planner,diydrones/apm_planner,mirkix/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,kellyschrock/apm_planner,mirkix/apm_planner,dcarpy/apm_planner,kellyschrock/apm_planner