Added return value of the program corresponding to errors