You can improve the close function passing the message object to be closed as a parameter. Just need to rewrite line 144 from: ``` options.close(); ``` to ``` options.close(obj); ``` Now it's possible to customize the close function according to the message itself.