implement #set_error_handler(custom lua code)

for gh-26