use process so the program can be terminated properly