Fixed handling of message dialog response.

This finishes the implementation of clearing plugin metadata.