Fixed a few null refs when connections are dropped during message processing