Closing the Profile View window also closes the database. If you close the window using the close control at the upper right corner of the window, you will be asked to confirm whether the database should be closed.
Alternatively, select Database/Close Database System/Close Database from the Profile View menu.