Refactor out the delete() call on its own to make it more obvious that we are actually deleting a file.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1597916 13f79535-47bb-0310-9956-ffa450edef68
Force deletion on JVM exit if it failed now.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1597917 13f79535-47bb-0310-9956-ffa450edef68