Partial fix for shutdown. still need to cleanup event queue and reconsider compositor destroy