Adds a call to get method of Future task.

Adds a call to get method of Future task so the threads are closed in sync. Resolves issue #71. I have not developed any test because stop method is called several times in tests.