leaving process