explicitly use lua5.2 version
sanity check before sending message
ignore SIGPIPE signal