Fixed error log which is created when device is removed while monitoring is happening. Log used to show empty JSON string