fix exception on reload

Fixed exception caused by trying to re-init the application class loader when reloading.