fixed araqne/issue#279. invoke onStop() callback while stopping, not after completely stopped.