Handled various exception in whole project.