Use shutdown function when num_requests are done
Merge pull request #60 from SVT/useshutdown

Use shutdown function when num_requests are done