#100: fix Aria2Adapter getmessage blocking
#25: Attempt to fix crashing on exit.