is there a way to have a callback for .kill - method?