extract methods for running screen server
exit screen server on Tk window close