Add handler for uncaught exception.
Release unused bitmap resource.