Added shutdown functionality
Fixed all build warnings in Visual Studio
Rewrote comment to be more clear
Merge branch 'shutdown_plugins' into develop