OPENJPA-2444 move the cleanup after freeing the InputStream Win* blocks the whole file as long as the InputStream is not closed. Thus we can only delete the file afterwards.