Removed 2 empty statements
Removed another empty statement
Fixed a number of resource leaks in edge cases

Input/Output streams should always be closed in a finally block, so they
are closed regardless of what happens inside the actually useful code.
Fixed another resource leak
Merge pull request #32 from Tetha/tetha-cleanup

Fixed a number of resource leaks and eclipse warnings
Fix launcher always wanting to update