Transaction cannot close account to its sender

Wow amazing, thank you. How does that last step work? Is there a way to reduce the amount upfront so that the player never has to encounter an error?