exit on fail

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Merge branch 'tools'
merge emacs 6c7a91088becff9adf558ab3f6929a0f6bda600f

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>