Avoid possible handler leaks

See, for example, [Handlers and memory leaks in Android](http://stackoverflow.com/questions/11278875/handlers-and-memory-leaks-in-android) for additional reading.