Fixed process management for stopping and starting API mock