Close the window after submitting a message to the researcher