Add additional arguments to __exit__ method