Add check for file size in GUI
Check if ui_socket is closed