Keep unique exit codes

We use exit(1) whenever we want to show an error. We need to consider throwing unique and meaning full error codes ( exit(10), exit(20), exit(21)). 20 and 21 here denote that they are part of the same function

Edited by Ashwin Kumar Karnad