Iss 71

For #71.

Added logs for backend.
Double-stacked if(err)