Solves #24. Putting a while at the end of Program.cs seems to make it working outside tmux as well.