Ensure correct busy/non-busy handling by using JDK7 automatic resource handling