return nil on repo.close
remove unused error from set_repository_options
Merge pull request #189 from nvloff/repo_close_return_nil

fix couple of compilation warnings