Moved props to top.
Added Closeabe support for java 7