Sorry, dlclose is in the c source for Handle#close. Maybe try rescuing the error and see if you can reload the file?
dlclose
Handle#close