Added processing modes. Sequential is working fine. Parallel mode cannot take exit. No memory leaks either way.