-Fixed a bug with PluginManager and minor code cleanup

-Improved error handling in BaseEntityManager.LoadDynamic()
-Updated incorrect method names in BatteryEntity (result of 1.038 patch)
-Fixed bug with on-close delegates by disabling registration of BeaconEntity
-Fixed bug with CubeBlockEntityManager.LoadDynamic() and improved error handling
-Improved error handling in SectorEntityManager