Introduce a finalize on process so that it can terminate leftover processes before it destroys.
Using unique ptr in libprocess gc.
fix style issues.