Added std streams flushing (Send SIGUSR1 to flush streams)