waits for Enter before closing