updated hardware plugin
only set_exception_handler if debug