Added minor change to default.py to avoid hanging when restarting app.