Replaced raise() to kill()