simplify logic
reinitialize libnotify on failure, give it three tries