Changed target SDK version to 8.
Extended exception handling.