Added more logs and refined killing processes