Fixed large errors upon quitting on log