Added error logging, sync query timeouts and fixed pollall