Fixed a small undetected issue with server shutdowns.