delete implements AutoCloseable (since 1.7)