add error handling around WOL