Admin API to change debugging and fixed deadlock on session timeout