Add method to rescue heroku errors