Learned Try with Resources. Use for AutoCloseable in java7.