Core: on exit, wait for threads.

This path makes Monkey workers Joinable, upon exit it joins the
threads before to exit. Safe exit.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>