Solves #24. Putting a while at the end of Program.cs seems to make it working outside tmux as well.
Merge pull request #35 from Chiel92/master

Issue #24