add error handle if the background page is not found.