Unhandled exception when calling rmdir on non-existent file or directory

If you call rmdir on a non-existent file or directory, the library currently throws an exception, that is impossible to handle because it is called asynchronously. This fix returns the error in the callback instead.