Can general relativity explain the phenomenon of time loops and time travel?