Incorporated better JSON error handling for deauth