Avoid running multiple similar processes like gulp
When a gulp watch gets started and runs in the background, i.e. in a terminal of PhpStorm, that terminal gets closed when the project closes in the IDE but the gulp task continues to run because it runs in the container which is still up although the terminal got closed.
Next time you need it, you start another session of gulp and now you may have two of them running for the same tasks.