ide: Error check open_window() call