added some better Exception handling

This time I have reduced the chance of Application Not Responding (ANR)
and made a better Exception Handling...