Err aware callbacks

Initiative by Gregor. I need it for mongo-port