Exceptions could be thrown by the method calls above which prevent these `release()` calls from happening. Should use try/finally here.