Just checking – what publish settings have you used in Lectora? Is the checkbox for ‘course launches in a separate window’ unchecked? And is there a setting in the LMS that controls where the course opens? Is that set to the correct option? If these things are as they should be then the scorm finish command that is called when the exit button is closed should return you to the LMS and not close the browser window.