At the bottom right are the "exit" buttons.
Click "Open" to retain Camera raw edits and continue to edit in Photoshop
Click "Done"to retain edits but close the image
Click "Cancel" to close without keeping edits
You can also Shift+Click on "Open" to retain edits and open in Photoshop as a smart object
Dave