Catch any error while http actions