update messages_controller to kill sender thread