Fix POSS2WithException logout

return an array with error and error_msg for logout