Fix hanging on compile errors