Fixed getProcess call in stop function