Instead of printing to stderr, always log to a Logger to make sure it goes into our log files and gets sent to Logglye when necessary.  You can see an example of configuring a static logger in org.lantern.monitoring.StatsManager.