Add type checks for daemon handler

Checking that id is string