Unbind function and file clean up.