The callback is not closed in a finally which will lead to resource exhaustion.