For those with the restarting problem - There are 2 electrical boxes in the 1st chain, by the portal. Make sure BOTH of them are out of place, The game should stop restarting and let you finish. The two boxes don't need to be in place until the final moment - to power closing the portal.