Close on file selection