Explicitly exit bash shell, not sure why heredoc is acting this way.