Android: Handle error a bit better