Added check for BAD_REQUEST (interaction when session was already closed)