Streamlined error handling and piping through a queue of go functions