If there is no network connection when trying to search, show a messagebox.