moving more signal handling code to common code
add kill to shared code