Added stop_main_loop().