Remove goto loop for open.