Updated cwatch.c with appropriate exit codes