- 
    Type:Task 
- 
    Resolution: Fixed
- 
    Priority:L3 - Default 
- 
    Affects Version/s: None
- 
    Component/s: engine
- 
    None
Created on behalf of the following PR:
https://github.com/camunda/camunda-bpm-platform/pull/1052
It suggests to use the try-with-resources pattern for closable resources for more compact and resilient code.