Close All Securities

This function closes all currently open Security components.

If there are any currently open securities whose values have been changed but not saved in the database, this function will fail and the remaining securities will remain open until the changes are canceled or saved.