Stop the io_service on quit.
Move MainWindow code to its own files.