Close file manager on file chosing