Found a solution to the constant restart problem.
When S4 shuts down, remove the battery to stop the phone from recurring restarts. Plug in power source to the phone, whether through the phone charger or a portable charger ( i recommend the latter as you will most probably experience the...