Restore error handling after using libsmbclient-php
Fix catching rmdir on file