psd-resync is handled automatically.
Proper shell exit on error.