-Xrs and shutdown issues