clean up message controller