close the mutex