Added kill function

Added kill function