Move emergency socket message logging to a higher level