prevent calls on closed handles

remove autoload as it is deprecated