fix return response if not success for communication with session