Close All Portfolios
This function closes all currently open Portfolio components.
If there are any currently open portfolios whose values have been changed but
not saved in the database, this function will fail and the remaining portfolios
will remain open until the changes are canceled or saved.