Ok, I figured out that I need to first register a menu with the Tray, but this only if I want a tray menu. Can the user left click the icon and receive no callback? I think this will prevent the error.