Easy fix to not run CLI commands while sync is running or requested. Closes #182