Remove extra blank lines at end.