fixed graceful exits with toolkit and bbb-server