Only disable UI, not API, fixes #361