Close output view if there are no errors or warnings. Also clear the markers when output view is cleared.