Fix the bug of not-able-to-kill-connected-processes on Darwin

Also, this change makes Prism kill processes it started when Prism received signals including: TERM, KILL and INT.