Added error handler to update check