added the method is abortable
changing the signature of the method close and deleting interrupt