init and config exit w/ error codes. Fix #1078.