exit 1 when there is a error