apidoc
removed unnecessary try-finally blocks