Terminate a program by port on Mac