account for read/write in closed files as well

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>