Exit after running --client

Otherwise tools which use --client such as the vim mode don't work since they can't capture the output fully.