Make init() return sensible error code rather than -1 in case of