added check to make sure systray is available