Adds exception handling on nuve