Allow for actions that can fail, also catch exceptions