Fixed adapter stderr logging

Check exit code before logging stderr as error, if exit code is 0, log
stderr as INFO, else as ERROR.

Fixed #17