Work around sh module ignoring command failures caused by signals