Use try with resource

Change-Id: Ie8c40a699bf386019700faa8ea5fd7347ff7c702
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
5 files changed