exit with error code in case of error during setup