Added some error handling to chromewarps functions