Add some more init checks and use Tk for errors