Clean up after gedit