[[ RefactorSyntax ]] Make sure processes are cleaned when necessary