Don’t send notifications to dead threads

Also don’t let the looper thread die and log exceptions.
Android seems to have the bad habit of trowing anonymous
runtime exceptions :-S

Fixes issue #480