Prevent calling done() multiple times