Made the context references weak to exempt them from gc.
Added default signal handling to loop using signalfd.
Removed destructor. Garbage collection handles everything.