Java agent that detects file handle leak