fixed error in startup script that didn't stop the processes when stop was called