Fix the stop function in init script to make sure the process gets killed