Changed kernal driver detach and general cleanup.