_ => spawn + __ => spawn_ + typo

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix bugs in shutdown process

Signed-off-by: Mattias Andrée <maandree@operamail.com>