These are OS-provided boxes -- on Windows they do as you desire, as does our implementation for Linux (but I guess macOS doesn't? I'll check that when I get home...)
maybe it is an issue only in this type of message, dont know if is coincidence that fact that it has no "X" to close like the others boxes do. OSX 10.9.5 here