Core: Shutdown/Exit Crash Fix
Updated some coding that was causing a crash on shutdown from commands server shutdown 0 and server exit 0.