Update p7v.c

Removed return statements in between main function, such that control flows till the end where the error can be checked and handled.