Use finally to not duplicate code