Hide flashed messages when the 'x' is clicked.