fixed error, calling unbind instead of cleanup