Fixed connection leak.

(as pointed out here: https://github.com/aodn/geoserver-build/pull/3#discussion_r12420446).

Thanks @julian1 - you saved us all some work later on.