Make message profile close work