Added a process to refresh the mqtt client for input adaptor