Use raise() instead of kill() for portability.