write process types when releasing