Handle error

We have to return in case of the error otherwise the server will crash