Close resources when finished using them.
Also, Jenkins is now doing what I want! :D