knows when a request is over