Added connection testing before attempting to load the menu