Connection as auto closable

Changed Connection class so it implements autoClosable interface; Results in a smoother api on language level 1.7+