Fix signal handling on kill