Removed closeOnCompletition() - specific to Java 7