// handle dying processes