fix bug: notifier hangs on close