Refactor closing resources of try blocks for ceylon/ceylon.language#249