To avoid X session termination, do sudo killall -r -9 "gvfs.*" instead of kill -9 {the number of the compiz process}
To avoid X session termination, do
sudo killall -r -9 "gvfs.*"
instead of
kill -9 {the number of the compiz process}