output pid in error message when failing to restore limit