Fix incorrect signal number after successfull termination.

12 is not always SIGUSR2, on some systems (FreeBSD) cause perl core dump