Add oneshot target ; fix segfault in exit_modules