Ensuring complete tool closure with an inductive proximity sensor