gui_window: Remove unnecessary try-catch blocks