Cleanup server process handling.