Add on_quit function for main window to reload binary file