fix logging when jedi in daemon.py crashes
add regression test for loggin in daemon