Fixes exec synchronization issues.