Fixed graceful shutdown.
Released 0.2.1.