When closing a Stellar account, can leaving a signer on it prevent the account merge?
Stellar's Account Merge can delete the source account and transfer its remaining XLM to another account. The official result-code documentation says that if the source account still has trustlines, offers, or data entries, the merge will fail because non-signer subentries remain. Extra signers themselves are allowed to remain until the merge, when the protocol removes them as part of the process.
For example, an account being prepared for deactivation still has a trustline with a zero balance, as well as an extra signer used for authorization. The trustline may remain even after its balance reaches zero. When you encounter HAS_SUB_ENTRIES, first check what non-signer entries the account still has, so you don't remove a signer that's currently being used to sign transactions. The merge transaction itself must still satisfy the signing authorization requirements.
When maintaining the account closure interface, you can list blocking reasons by entry type. If the account’s subentry count is greater than zero, you should also check what they are. Reconciliation should be verified against the final result of the merge operation and the changes to the destination account.
$XLM #Stellar
Source: https://developers.stellar.org/docs/data/apis/horizon/api-reference/errors/result-codes/operation-specific/account-merge
https://developers.stellar.org/docs/data/apis/horizon/api-reference/resources/operations/object/account-merge