Timeout when started as shell search provider

When started by GNOME Shell as search provider, exit automatically after
timeout.
Fixes Bug 736472.