Close messages boxes with the activation key (Bug #589)