Added try-catch block to ClearMenuItem, added method to display the error message in ErrorMessage.Error()