Effects of finite-time singularities on gravitational waves