fixed problem with Adapter.close() and not specifying callback