Tries to kill a process nicely (via SIGTERM) and forcefully kills it if it didn't exit after a given timeout.
(Object)
(Number? = 500)
500
kill(9)
Promise