version 0.5.0: change commit exception logic