Fixed problem when running using the absoluthe program path
Add handler for CTRL+C
Improved invalid channel detection
The program return 1 in case of errors