Slightly improve error termination logic of installer