do not call bonescript if not in production mode, avoid EBADF on the UDP socket