This patch works around the 'hanging after 2nd stage install' bug but I don't really understand what's going on here. Basically, It looks like ProcessData is null on the very last call (the one that would seemingly flush the registry and reboot).
If i comment the break, nothing breaks and reactos reboots as expected when i press the reboot button.
After the latest rewrite thing requests are being made to CSRSS on behalf of a process which earlier indicated it was terminating. I've changed CSRSS to not believe the process anymore when it says it is going to terminate.
Ge van Geldorp.