Adds exception handling in DSM