Fixed wrong memory access after free. Added onion_stop to websockets example to properly free all mem.