Separated stdout and stderr handlers.