Fixed cleanup of old processes