Fixed join_cluster script so that it actually ends.