add catch for all exception

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
fix exception on release JERRY_BEANS or before

Signed-off-by: Hiroshi Miura <miurahr@linux.com>