Remove throws declaration from MainWindow constructor.