function exit (status, ...messages) {
  if (messages) {
    messages.forEach(message => console.log(message))
  }

  process.exit(status)
}
Exits the process with a given status,
logging a given message before exiting.

@param {number} status - exit status
@param {string} messages - message to log