If error return 1. 0 - if program exit successfully