More generic catch for linux