Making remote hook more robust

Fixed some issues with remote hook. Added Event Log logging.