Fixing issue with process killing.