distinguish between ending process normally and killing it