Cleaned up driver finish function to make sure resources had been allocated before they were freed.
Cleaned up driver finish function to make sure resources had been
allocated before they were freed.

toland/bdberl,toland/bdberl