Use GFile instead of io.open and bind Ctrl+W to close window