Fix MSVC warnings. Fix exception when using cvars when shutting down. Added "quit" command