IO exception handling simplification (where relevant)
+ fight warnings