Return correct values for loading/unloading scripts. Remove Socket.isConnected() (not reliable)