Add exception handling for users scripts