Activity: how to deal with unexpected events?