Added the possibility to prematurely dismiss a toast