Fixes #3217 - Do not output messages to STDOUT

I don't know what exactly interfered, probably some part of logging. This seems as a better way anyway.