loopForever doesn't handle exceptions very well