I am developing a GTK based softphone using py_pjsua and I am having a little problem on cleanly exiting the application by calling the destroy() method of pjsip. It does not block the program and gtk.quit() is called right after even tho the process is not yet ready to terminate providing to the user a "Application Not Responding" window untill pjsua gets correctly cleaned. What is the best way to do that? Thanks, Mesquita