Remove Flash message container when closed