Adds error handling if ST link fails