Use PL_exit_hook to handle cleanup of processes outside of windows and linux