checking if there is error message in stderr, fixes #1