Ensure messina exits after the input stream closes.