Set domain/path, logging
cleanup
Use try-with-resources