Initialize semaphore
Cleanup