Test that worker panic only causes error to be logged, not agent crash.