Attempt to fix #7241

This involves moving everything in build_ceph_cluster() inside the try:
block, so if an exception fails the cleanup in the finally: block will
actually be executed.

(cherry picked from commit 81d1405a15c03a25b088941e75354a5286e90b83)