android mediacodec: catch more Java exceptions and add log messages