use notifications for more responsiveness
do not import time
a few small tweaks
more reliable cleanup