Fix error while quiting

Summary: Fix error

Test Plan: npm test

Reviewers: fadrizul

Reviewed By: fadrizul

Subscribers: fadrizul

Differential Revision: http://diff.myteksi.net/D38