Log to server log when security terminals are broken

Adds #118 

Do not return null, use `Optional`