Earlier quoted context omitted.
It was bad coding. .unwrap() is not required to be used. use: if let Some(value)=something_to_unwrap{ }else{ // log an error and exit!! }
Fun fact: that's what an unwrap does. It panics, which causes the error to be logged and the thread ended.
I shy away from unwrap() in almost all cases (as should anyone!) but if you are running a modular system, then unwrap when placed strategically can be incredibly useful.