Cleaned up SystemTray implementation.