Fix shutdown of proximity sensor

Change-Id: I1768f13cb48c3e056d0e137642690fc3d650c4ab