fix(ssh): create the error channel before using it